package hello.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("excelTest")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value = "excel文件实体")
public class ExcelTest extends Model<ExcelTest> {

    @ApiModelProperty("名称")
    @TableField("name")
    @Excel(name = "姓名")
    private String name;

    @ApiModelProperty("年龄")
    @TableField("age")
    @Excel(name = "年龄")
    private String age;

    @ApiModelProperty("性别")
    @TableField("gender")
    @Excel(name = "性别")
    private String gender;
}
